Skip to content

Instantly share code, notes, and snippets.

@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active November 28, 2026 06:56
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
@TheHippo
TheHippo / Makefile
Created March 31, 2016 22:32
Golang Makefile example
OUT := binariy-name
PKG := gitlab.com/group/project
VERSION := $(shell git describe --always --long --dirty)
PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/)
GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/)
all: run
server:
go build -i -v -o ${OUT} -ldflags="-X main.version=${VERSION}" ${PKG}
@pazdera
pazdera / brute_force_string.py
Created July 31, 2011 11:14
Brute-force string generation in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Brute-force string generation
# Copyright (C) 2011 Radek Pazdera
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@eswar-7116
eswar-7116 / adbqr.sh
Created November 15, 2026 14:24
Shell script to pair Android 11+ devices with ADB over Wi-Fi using Wireless Debugging and QR code pairing
#!/usr/bin/env bash
# NEEDS: openssl, qrencode and adb pre-installed
name="adb-$(openssl rand -hex 4)"
pass="$(openssl rand -hex 6)"
qrencode -t ansiutf8 "WIFI:T:ADB;S:$name;P:$pass;;"
echo "Phone: Developer options → Wireless debugging → Pair device with QR code"
@vardumper
vardumper / README.md
Created October 10, 2026 12:06
macOS Golden Gate Debloater - removes Siri, AI, Telemetry features to free up resources on Macbook Neo

Golden Gate debloater: how to use

Two scripts for macOS 26 (Tahoe) or 27 (Golden Gate):

  • golden-gate-debloater.sh turns off Apple Intelligence, Siri, suggestion, and telemetry background services, and sets a few privacy defaults. It records every change it makes.
  • golden-gate-restore.sh undoes what the debloater recorded, or resets everything it knows about to macOS defaults.

Both are written for the bash 3.2 that ships with macOS.

Before you start

@lokulin
lokulin / README.md
Last active November 28, 2026 06:24
Un-fuck Firefox Nova

De-Nova for Firefox

Two stylesheets that make Firefox's Nova redesign look like the old (pre-Nova) interface: squarer corners, neutral greys and a blue accent instead of violet tints, no violet-to-orange toolbar gradient, and the old tab and settings layout. Written against Firefox 161.

File Styles
userChrome.css The browser UI: tabs, toolbars, URL bar, bookmarks bar, menus and popups, sidebar.
userContent.css Firefox's own pages only (about: and chrome:), such as Settings, Add-ons and about:config. Websites are untouched.

Install

@k16shikano
k16shikano / SKILL.md
Last active November 28, 2026 06:24
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、翻訳調の比喩と擬人化の禁止(「運ぶ」「効く」「開かれた問い」など)、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。
license Unlicense(https://gist.github.com/k16shikano/67625f2a7d96e3bbdfae8d571a936063)

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

@k16shikano
k16shikano / SKILL.md
Last active November 28, 2026 06:24
cognitive-rhythm-writing/SKILL.md
name cognitive-rhythm-writing
description 説明的な文章に緩急を設計するための規範。緩急を装飾ではなく認知モードの切替(観察→逡巡→断定→再観察)と未回収の緊張の管理として扱い、文の拍、段落の密度波形、節の入り方、緩みと駄文の判別、執筆後の機械的な点検手順を定める。読み物として読ませたい章・記事・解説文を生成するとき、または「密度はあるが平坦でおもしろくない」文章を診断・修正するときに使用する。

認知リズムを生むための日本語ライティング規範

密度の高い文章が退屈になるのは、情報が多いからではなく、全文が同じ認知モードで書かれているからである。 この規範は、読者の認知モード(観察する、迷う、確信する、確かめ直す)を意図的に切り替え、常に「続きを読む理由」を維持することで、読み進める推進力を作る。